package com.colin.app.activity.login;

import android.widget.EditText;
import android.widget.ImageView;

import com.colin.app.app.AppActivity;
import com.colin.library.base.BaseModel;
import com.colin.library.base.BasePresenter;
import com.colin.library.base.BaseView;

/**
 * Created by Colin on 2017/2/7.
 */

public interface LoginContract {

    interface LoginView extends BaseView {

        void initLoginUser(String user, String password);

        boolean checkPermission(String permission);

        void getImageHeadFromPhone();
    }

    interface LoginPresenter extends BasePresenter {
        void getHead();

        void showDeleteImageView(String text, ImageView imageview);

        void clearText(EditText editText);

        void showPassword(ImageView imageView, EditText edit_login_password);

        void login(EditText edit_login_user, EditText edit_login_password);
    }

    interface LoginModel extends BaseModel {

        String getUser(AppActivity mAppActivity);

        String getPassword(AppActivity mAppActivity);
    }
}
